package com.fbt.transfer.app.driver.socket;

public class MessageWrapper {
    public String message;
    public int priority;
    public long timestamp;
    public int retryCount;
    public static final int MAX_RETRY_COUNT = 3;

    public MessageWrapper(String message, int priority) {
        this.message = message;
        this.priority = priority;
        this.timestamp = System.currentTimeMillis();
        this.retryCount = 0;
    }

    public boolean canRetry() {
        return retryCount < MAX_RETRY_COUNT;
    }

    public void incrementRetryCount() {
        this.retryCount++;
    }
} 